//
//  LeftTableViewCell1.m
//  Toyohu
//
//  Created by GuoPeng on 16/4/20.
//  Copyright © 2016年 celia. All rights reserved.
//

#import "LeftTableViewCell1.h"
#import "knowledgeStyleOne.h"
#import <UIImageView+WebCache.h>
@implementation LeftTableViewCell1

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(knowledgeStyleOne *)model
{
    _model = model;
    _title.text = model.title;
    _sketch.text = model.sketch;
    [_img sd_setImageWithURL:[NSURL URLWithString:model.imgUrl]];
    _favourite.text =[NSString stringWithFormat:@"%ld",model.favouriteNum];
    _coment.text = [NSString stringWithFormat:@"%ld",model.commentNum];
    
}

@end
